﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">
  <class name="Agencia" table="common_Agencia">
    <id name="Identity" column="AgenciaId"  type="guid">
      <generator class="guid.comb"/>
    </id>

    <property name="Codigo" column="Codigo" type="string" length="50"  />
    <property name="NombreComun" column="NombreComun" type="String" length="50" />
    <property name="Direccion" column="Direccion" type="String" length="50" />
    <property name="EsSede" column="EsSede" type="bool" />
    <property name="EstaActivo" column="EstaActivo" type="bool" />

    <many-to-one name="EmpresaRef" column="EmpresaId" class="OpenSda.Agilcont.Common.Data.Entities.Empresa, OpenSda.Agilcont.Common.Data.Entities" not-null="true" />

  </class>
</hibernate-mapping>
